| От | Owen Hartnett |
|---|---|
| Тема | Re: Question on libpq parameters |
| Дата | |
| Msg-id | p0624080bc55909e690b1@[192.168.0.107] обсуждение |
| Ответ на | Re: Question on libpq parameters (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
At 1:26 PM -0500 11/30/08, Tom Lane wrote: >Owen Hartnett <owen@clipboardinc.com> writes: >> Yes, it did. I'm confused. My first parameter is a string, but the >> following two are integers. I thought the paramType parameter >> indicated the type. Do the integers need to be sprintf'd to strings? > >Yes. > >Alternatively, you could pass the integers as binary, but that's not >notation-free either (you need htonl or some such). > > regards, tom lane Thanks, that did it. I got confused with the binary parameters, and PQgetvalue returning the binary through a char * when it returns a binary value. -Owen
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера